package Presentation;

import solitaire.application.Usine;
import Controlor.CTasDeCarteColoree;

public class PTasDeCarteColoree extends PTasDeCartes{
	private static final long serialVersionUID = 1L;
	
	private CTasDeCarteColoree controller;
	private Usine u;
	
	public PTasDeCarteColoree(CTasDeCarteColoree controller, Usine u){
		super(null, u);
		this.controller = controller;
		this.u = u;
		computeDimension();
		align = PTasDeCarteColoree.VERTICAL;
	}
	
	public void computeDimension(){
		int w = PCarte.largeur+4;
		int h = PCarte.hauteur+4;
		setSize(w,h);
	}
	
	public void empiler(PCarte pc){
		add(pc,0);
		pc.setLocation(2,2);
		computeDimension();
	}

}
